package com.suncnpap.library.mapper;


import com.suncnpap.library.model.BorrowBook;
import com.suncnpap.library.model.BorrowBookInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.app.util.database.mybatis.Page;
import com.suncnpap.base.mapper.BaseMapper;

/** 
 * 说明： 图书借阅Mapper
 */
public interface BorrowBookMapper extends BaseMapper<BorrowBook>{
	
	public BorrowBook findByBookBarcode(@Param("strBookBarcode") String strBookBarcode, @Param("strSchoolId") String strSchoolId);
	
	/**通过期刊条码删除数据
	 * @param strJournalBarcode
	 * @
	 */
	public void deleteByBookBarcode(@Param("strBookBarcode") String strBookBarcode, @Param("strSchoolId") String strSchoolId);
	
	/**
	 * 查询条数
	 * @param strCardNumber
	 * @return
	 */
	public int findCountByCardNumber(@Param("strCardNumber") String strCardNumber, @Param("strSchoolId") String strSchoolId) ;
	
	public List<BorrowBookInfo> dataInfolistPage(Page page);
	
}

